import { ref } from 'vue';
export const useModal = () => {
    const visible = ref();
    const setVisible = (isShow) => {
        visible.value = isShow;
    };
    const showModal = () => {
        console.log(visible.value);
        setVisible(true);
    };
    const handleClose = () => {
        setVisible(false);
        // location.reload()
    };
    return {
        visible,
        handleClose,
        showModal,
        setVisible
    };
};
